package com.originskyseed.platform.user.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.user.model.PlayerRelateAnchorRecharge;

/**
 * 玩家为主播累充信息表Service接口类（OSI_PLAYER_RELATE_ANCHOR_RECHARGE）
 * 
 * @author Tangwanghui
 */
public interface IPlayerRelateAnchorRechargeService {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(PlayerRelateAnchorRecharge record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(PlayerRelateAnchorRecharge record) throws Exception;



	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(String tenantCode,PlayerRelateAnchorRecharge record) throws Exception;
	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(PlayerRelateAnchorRecharge record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(PlayerRelateAnchorRecharge record) throws Exception;


	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(String tenantCode,PlayerRelateAnchorRecharge record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public PlayerRelateAnchorRecharge selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询记录,根据玩家id
	 *
	 * @param playerId
	 * @return
	 * @throws Exception
	 */
	public List<PlayerRelateAnchorRecharge> selectByPlayerId(String tenantCode,String playerId) throws Exception;



	/**
	 *根据玩家id批量更新
	 * @param tenantCode
	 * @param playerIdList
	 * @param lastLoginTime
	 * @param updateTime
	 * @return
	 * @throws Exception
	 */
	public int batchUpdateByPlayerId(String tenantCode, List<String> playerIdList, Date lastLoginTime, Date updateTime) throws Exception;

	/**
	 * 查询记录,根据玩家id
	 *
	 * @param playerId
	 * @return
	 * @throws Exception
	 */
	public List<PlayerRelateAnchorRecharge> selectByPlayerId(String playerId) throws Exception;


	/**
	 * 查询记录,根据玩家id
	 *
	 * @param playerId
	 * @param anchorId
	 * @return
	 * @throws Exception
	 */
	public PlayerRelateAnchorRecharge selectByPlayerIdAndAnchorId(String tenantCode,String playerId,String anchorId) throws Exception;




	/**
	 * 查询记录,根据玩家id
	 *
	 * @param playerId
	 * @param anchorId
	 * @return
	 * @throws Exception
	 */
	public PlayerRelateAnchorRecharge selectByPlayerIdAndAnchorId(String playerId,String anchorId) throws Exception;
	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<PlayerRelateAnchorRecharge> selectList(PlayerRelateAnchorRecharge record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<PlayerRelateAnchorRecharge> selectListByPage(Map<String, Object> params, BasePage<PlayerRelateAnchorRecharge> page) throws Exception;

}